<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>MeatMeetsMeat</title>
  <%= stylesheet_link_tag 'scaffold' %>
</head>
<body>
	<h1>
		MeatMeetsMeat
	</h1>
	<p>
		touch bodies, not screens.
  </p>
<%- if logged_in? -%>
<ul>
	<li><%= link_to 'dashboard','/' %></li>	
	<li><%= link_to 'logout','/logout' %></li>	
</ul>

<%- if @latest_users -%>
<h2>Últimos usuarios</h2>
<ul>	<%- @latest_users.each do |u| -%>
		<%= link_to u.login, user_path(u) %>
	<%- end -%>
</ul>
<%- end -%>

<%- end -%>

<p style="color: green"><%= flash[:notice] %></p>
<hr>

<%= yield  %>

</body>
</html>
